package com.bk.service;

import com.bk.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bk.utils.Result;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

/**
* @author 24940
* @description 针对表【user】的数据库操作Service
* @createDate 2024-04-04 11:19:56
*/
public interface UserService extends IService<User> {

    Result login(User user, HttpServletRequest request, HttpServletResponse response);

    Result register(User user, HttpServletRequest request);

    Result updateUserInfo(HttpServletRequest request, User user);

    Result getUserInfo(Long id, HttpServletRequest request);

    Result logout(HttpServletRequest request, HttpServletResponse response);

    Result getByIds(List<Integer> ids, HttpServletRequest request);
}
